<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <script>
            const s = new Set(["大叔","二叔","天明","少羽"]);
            //集合的长度
            console.log(s.size);
            //集合的添加
            console.log(s.add("月儿"));
            //集合的删除
            console.log(s.delete("月儿"));
            console.log(s,typeof s);
            //集合的清0
            // s.clear();
            // console.log(s);
            //是否存在
            console.log(s.has("月儿"));
            
            //遍历集合
            for(let i of s){
                console.log(i);
            }
        </script>
    </body>
</html>